export = function (sourceId: string, roomName: string): ICreepConfig {
    return {
        // 寻址+开采 不搬运
        source: (creep: Creep) => {
            const room = Game.rooms[roomName];
            if (!room || creep.room.name != room.name) creep.moveTo(new RoomPosition(39, 10, roomName));
            else if(creep.room.name == room.name) {
                let source: Source = Game.getObjectById<Source>(sourceId);
                if (creep.harvest(source) == ERR_NOT_IN_RANGE) creep.moveTo(source)
                return
            }
        },
        // 状态切换条件，稍后会给出具体实现
        switch: (creep: Creep) => creep.memory.working = false
    }
}